package com.zdkj.subway.check.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * 互联网售票机详情（车站）
 */
@Data
@TableName("sw_st_internet_ticket_equipment_details")
public class SwStInternetTicketEquipmentDetails {
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    Integer id;
//    Integer relationId;
//    Integer equipmentId;
//    String equipmentName;
//    Integer saleNumber;
//    BigDecimal totalSaleAmount;
//    Integer deptId;
//    Integer creatorId;
//    String creatorName;
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    Date createTime;
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    Date updateTime;
//    String delFlag;
//    BigDecimal unitPrice;
//    String equipmentCode;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    Integer id;
    Integer relationId;

    @ApiModelProperty(value="线路")
    private String lineCode;

    @ApiModelProperty(value="站点")
    private String stationCode;

    @ApiModelProperty(value="开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value="结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    String ticketType;
    String ticketName;
    BigDecimal ticketAmount;
    Integer ticketCount;
    String equipmentCode;
    String equipmentName;
    Integer saleNumber;
    BigDecimal totalSaleAmount;
    Integer deptId;
    Integer creatorId;
    String creatorName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;
    String delFlag;
    BigDecimal unitPrice;

    @ApiModelProperty(value="提交状态")
    private Integer approvalStatus;
    private String remark;
    @ApiModelProperty(value="收益日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date revenueDate;

    @ApiModelProperty(value="报表修改状态：0：关闭 1：打开")
    private String reportModifyStatus;

    private Integer passengerAttendantId;
    private String passengerAttendantJobNo;
    private String passengerAttendantName;
    private Integer attendancePersonId;
    private String attendancePersonJobNo;
    private String attendancePersonName;

    @ApiModelProperty(value="审核模块互联网表ID")
    private Integer swAuInternetTicketId;


}
